import httpbase from "@/util/http.js";
//登录请求
export const loginzy = (username,userpws) => {
  return httpbase({
    url: '/admin/login',
    method: 'post',
    data: {
      username,
      userpws
    }
  })
}
//注册请求
export const zchttp = (username,userpws,zcname,pic) => {
  return httpbase({
    url: '/admin/',
    method: 'post',
    data: {
      username,
      userpws,
      zcname,
      pic
    }
  })
}

//token发送
export const tokenpost = (token) => {
  return httpbase({
    url: `/admin/getToken`,
    method: 'post',
    headers: { // 设置请求头
      token: token
    }
  })
}